package chapter_21.generic_class;

/**
 * Created by Administrator
 * Created time 2018/8/8 18:28.
 */
public class QueueTest {

    public static void main(String[] args) {
        Queue<String> stringQueue = new Queue<>();
        stringQueue.queue("A");
        stringQueue.queue("B");
        stringQueue.queue("C");
        stringQueue.queue("D");
        stringQueue.queue("E");

        System.out.println("元素删除前: " + stringQueue);
        System.out.println("删除元素: " + stringQueue.dequeue());
        System.out.println("元素删除后: " + stringQueue);
    }

}
